Fetch profile picture URL without HTTP 302 redirect

Default behavior in API use HTTP code 302 to redirect to data which contains URL for profile picture. It does not work with some older version of PHP (5.3.*).
This update works in PHP 5.3 and PHP 5.4 and does not contain any redirect so it could be faster :-)