Added resizeAndKeepOrientation method