updated color and image_paint routines