moved some graphics things to their own file