adding rotation and scalling to images