Added basic support for <rect> and <polygon>.