allow GD::createFromFile to handle remote urls

Previously it would not handle https urls.