Implemented clipping in Image class