fix image rotated when viewed