use requestAnimationFrame instead of setInterval to paint AnimetedIcon