apply to the image the missing elements shown in the references trees and the rest of the surrounding context