append the original path extension to the hash filename. closes #967

As requested in #967, append the original file extension to the cached path, so that things (like QuickLook) which guess the file type based on the extension can show the image.