A helper for manipulating raw image data and rendering it to a canvas.