improved gif data structure