decode animated frame for apng