Fixed unused code leaning to compiler warnings
Added API to determine whether or not image data is an animated GIF