new Image class with line() function.