fixes firefox image hidden overflow bug.
Merge pull request #3562 from caesar2164/giulio/zoom-image-firefox-bugfix

Fixes firefox image hidden overflow bug.