fix image rendering