I've fixed this within the image viewer plugin and updated the release code today. To patch just download the plugin, extract locally, then reupload the contents of the following folder onto your site. You'll need to also do any file servers:
/plugins/imageviewer/includes/
Cache path is still...