Rectangle updated and working

Finds rectangles in images