chop instead of floor
fix
fixed thirds func
do not downsample
different interpolation algo
do not detect image border as edge
adds bounds func
fix