Looks like `data.url.split('/').pop()` should do the same job in case static file is passed. 
`url.parse()` can be useful in case the file is passed with some url params, but if we expect such urls, we should also take into consideration, the file being called `thumbnailer.php`.