added animated frame support