implemented rotation and scaling for single images