fix image extension