Generate path from resource id. Use it for a resource id specific media resource.