Improved display performance for color images by adding a function getCanvas() to the image object for color images that returns a canvas that can be used as the source for drawing to the display canvas.  This strategy enables maximum display performance by avoiding copying buffers and also reduces memory consumption by allowing the image loader to decode the compressed byte stream on the fly .