Rename mediatype to media_type to follow the Go convention