I wasn't aware we were dealing with a module. Is it Categories Dressing?

If yes, the first line you posted tells me there is switch for the blank gif:

if (!$categories->fields['categories_image']) !$categories->fields['categories_image'] = 'pixel_trans.gif';

Turn that off, remove the <br /> and you should be good to go.

Otherwise, best to wait until Glenn offers a suggestion.