Fixed a bug with Firefox for visualising images.