More robust retina file naming

Previous str_replace() retina file naming causes errors if the path
contains periods (.), so replaced file naming with pathinfo()
Merge pull request #2 from funkygibbing/master

More robust retina file naming