generate image fix for mono
fix non mono build after mono hoocks added