Silence console warnings in Firefox by consistently returning a result from showImage, hideOverlay and showOverlay.