Revert animation code - AnimationThread + refactor for reuse images previously initialized - fix for MacOS