Anyone know why GIF images break xml?

Up until now everything I have loaded with xml has been jpg, so I was unaware. Is there a workaround?