It's currently not possible to manage the html being generated when an image or text ad is placed into a page using the AdSpace macro. This makes it difficult to control the display.
There should be templates for this HTML instead of having it embedded into the Perl code.