rotate image
fix image size and locations