improvement of sprite animations and management of changing theme