Separating out graphics into library