Added image-drawing functionality