cURL image download fix for PHP allow_url_fopen off