Added method to clip by index
Changed implementation to use Image setClip