Fixes a 64 bit warning - fixes the image viewer in 64bit mode.