Fixed issue with animations with 1 frame never finishing. Also fixed issue where last frame of animation would end instantly (wasn't respecting frame duration).