Add upgrade for namedfile and namedimages