Division by zero error in graphics (Joe Hunt)