implemented better image loading for drawing pads