rotation bugfix, save to image