use a check hint (globalVariables()) in favor of modifying code in renderImage