Fix run upgrade script, enable images uploading