multiple routines in simple algorithm. few changes in image algorithm
drawing rectangles