function toggleImage(image) {
  if(isToggleOn) {
    drawImage(EMOJIS[emojiIndex][IMAGE_INDEX], true);
  }
  else {
    g.clear();
  }
  isToggleOn = !isToggleOn;
}
// Toggle the display between image/off
Toggle the display between image/off
Toggle the display between image / off
function toggleImage(image) {
  if(isToggleOn) {
    drawImage(EMOJIS[emojiIndex][IMAGE_INDEX], true);
  }
  else {
    g.clear();
  }
  isToggleOn = !isToggleOn;
}
function toggleImage ( image ) { if ( isToggleOn ) { drawImage ( EMOJIS [ emojiIndex ] [ IMAGE_INDEX ] , true ) ; } else { g . clear ( ) ; } isToggleOn = ! isToggleOn ; }
Toggle the display between image/off
Toggle the display between image / off