changed PixelRectangle to be class