WIP: upsampling via Edge Directed Interpolation
rd_collect hack