Strip slashes from the hash as this breaks symfony.
Use individual paths for thumb and original image.