If I save an image as a gif (or any other format for that matter) in GIMP, and then use that image in my Java game as a TexturePaint and paint on a canvas, it slows down my game. However, the same image, with the same size ( actually .1 kB bigger), same format will load fine and not affect the game. I'm using ubuntu so GIMP is just about the only option for image editting. Is there some setting for saving images that I'm unaware of?
Here are the images I'm talking about:
The first one is the "good" one, that doesn't cause lag:

This one is the "bad" one:
