fixed image generation when multiple functionality have the same name