add draw_image() function