Added line creation support

Updated painter.clp to reflect these changes