Fixed resizeToFill to work correctly with rotateScreen