Implemented gif playing