Made zoomed rectangle viewbox match screen aspect ratio. Implemented formatViewBox helper method.