fix image rotate