That depends on what you are looking to take from it.
Just the name for the image, like in image/logo.png you just want logo.png? You can use basename() function to get that. Pathinfo function may also be of use which cuts all the components apart.
header('HTTP/1.1 420 Enhance Your Calm');