Here you are loading the params like in getMediaTag. Can we have something like loadJoomlaLibraryParams() for DRY ?