Allows you to draw an image, and returns the corresponding JavaScript code needed to recreate that image