use libnsgif to decode gif picture