Retrieve GoClient ClientID?

How do I retrieve the clientid for images (GoImage) rendered in a web diagram. The clientid needs to be retrieved in the web pages lifecyle before or during the OnPrerender method. This would allow us to create client-side javascript to manipulate images based upon certain conditions.
Regards,
Mike