apply the reference image finishes to the black and white image keep the geometry of the black and white image