Media image file names without any GET URI Params.

Consider the URL: http://cdn.somesite.com/s/files/1/0070/2812/products/IMAGE_R.jpg?v=1376697040

Without the propose changed when downloading a media image with GET parameters, the filename is saved along with as basename will return IMAGE_R.jpg?v=1376697040 instead of IMAGE_R.jpg as you would expect.

parse_url with PHP_URL_PATH parameter will return a proper file name.