Add directive to replace any imagine version