getting rid of &nbsp in css

I have an image which I have specified like this.
Image logo = new Image(“”, new ThemeResource(“img/mobile_logo.png”));

This seems to be adding
in the html

I want to get ride of &nbsp being generated as its adding a blank line in my web page. How can I get rid of that blank line being generated.

Did you try this?
Image logo = new Image(null, new ThemeResource(“img/mobile_logo.png”));

As Syam suggested, setting the caption to null will fix your issue.