Moved scales to setGeometry method.