Almost implemented crop. Currently, e.x2 and e.y2 from streamBoundaries is incorrect and nees to be fixed