Img Optim: Added support for GIF + error handling