Moved aspect ratio change to setSize function