Update image replacement helper class