fix alpha channel and homographs smoothing