added support for colors and images
committing the changes in the line object