Fixes to image example

Fixed compatibility issues in Chrome