Use webp in path only when webp is supported
Add path format version to file result storages

Test Plan:
make test
Merge pull request #253 from frankdu/webp_fix

Use webp in path only when webp is supported