add mediaPurpose when creating media