trim to rectangle (area of interest)