Added support for wp.getMediaLibrary