color function
picture drawing function updated