Add https support for image downloading

If you have image files that are on secure urls (https:), the migrator fails. So, this pull requests adds support for that.