Add PNG256 crop support, and skip grid crop when buffer=0 and stride=1