implemented gif loading