Planar graphs with bounded treewidth