The following php code function takes a full url and returns the filename or image name and makes the filename or image name more presentable or user friendly by turning dashes - or underscores _ (which are ususally used to separate meaningful words that make up the filename or image name) into spaces and removing any non letters from the filename.
For examples ...
... becomes ...