Check the enlarge/shrink code to fix the image getting deformed when changing its size when it has rotation. Reseting the image works just fine.