fix image extensions