getTagMedia update for maxTagId and minTagId