Added a new functions and Image class