Improved canvas example code and gave it a php extension (again)