Make sure the overlay gets updated when changing from gradient to input image.