Fixed problem where animation did not clean last image at right frame