added lazy-check for image generation to speed up build time