improved paint efficiency debugged relative position removed bug in parser for empty attribute methods