Fix thumbnail link when file is initially added, before the model is saved. Previously it would only work after the model was saved because the javascript only inserted the relative path.