improved logging on image generation