don't ignore MODX system settings for phpThumb

https://github.com/oo12/phpThumbOf/issues/5
Better error reporting and handling for remote images

The wrong protocol (http, https) with certain hosts would cause the
cURL transfer to 'succeed', but return nothing. Delete the 0-byte file
in this case and log an error message.