I have a canvas a and I load an image in to it, then on click I want to draw rectangles and save the coordination of each rectangle drawn ins