Merge pull request #1184 from oterral/get_image_element

Fix getImageElement calls in canvas and webgl renderer