Added an image class to wrap the pixel buffer.