Adding curl to PHP image