Add release configuration, fix image writing with new paths