Refactored Rectangle to work with new MetaImage format, refactored code to get Rectangles (only) fixed to work with MetaImage format