Add a parameter color so that marked rectangles can have differen colors