Clip an image or data uri with given starting point and size