upload_file fixed to not allow creation of null photos. Created script to delete empty photos