Added function for drawing on images.