draw line and animated line uses Image as paramater

draw line and animated line uses Image as paramater