finalize the magento image