Cleanup object URLs in gfx.js

Fix for issue #694.
- Always convert images to canvases
- Cleanup object URL after conversion
We might be able to completely remove convertNativeImageData now that it's always an instance of CanvasRenderingContext2D