Improve file naming with phpthumof.hash_thumbnail_names off

Fixes two problems:
1. Gives different names to files in different directories which happen
to have the same name, phpthumb options and be called from the same
resource.
2. Doesn't give a diffenent name to the same file with the same options
when it's called from different resources.