Fixed up more of the zooming code and fixed the color calculations.