buildsystem: fix image creation