Adjusted values in image rotation, rotation logic