[wip] define_apngasm class (use rice)