It is good for plugin developers. And better move thumbnail generation from widget in MediaLibrary class and make same functions public for that. Becouse for now not easy to extend end use Madia Library in plugins for example when create Gallery.
As you cen see I thas copy many functions from there https://github.com/SitesForChurch/oc-churchgallery/blob/master/classes/GalleryMediaLibrary.php
1-1 of 1