fix image construction