Hw9:rendering fixes