a boring algorithm for drawing a gif image...