added image class and ability to draw dot