downsample large bitmap