fix image processing