moved graphics to it's own type