Use version's identifier if it's present.

E.g if user converts versions to some another format (like png -> jpg in my case) we need to retrieve it in that format as well.