anim loop version1
optimize atlas frame by only assigning when there is a change
add infinite loop