Handling GIF images when watermarking