with UIImage and animatedGIF libraries