fix image generator