Updating graphics chapter and code re @bakercp's suggestions