Slugify image cache file

Make image cache filename insencible for russian letters, spaces, etc.
Slugify function is taken here: http://stackoverflow.com/questions/2103797/url-friendly-username-in-php/2103815#2103815