Fixed url for file with new extension

If input file name eq file.png and filter set format jpg, then before this commit get file.jpg, and from there get file.png impossible (404).
This commit makes the url file.png.jpg and everything works fine.