Insert draw line function in CloudWidget.