Rendering pencil puzzles