Replacing hardcoded 'jpg' with asset's file ext (if exists)

PLAT-590 #time 2h