Update canvas.php

Added the round function