Reorganized bugs subdir.
Added tga bug test case.
Added xbm bug testcase.
Bug fix; was calling the wrong function.