Update ui handler to return correct media type for gif and png assets