Finalize background replacement