calculate file url in models for Image and Snapshot