modified gmg to use plugin media_types and converted image media_type to new plugin style