fixed the error of rectangles in the image uploaded