Modified setTimeout function for a native requestAnimationFrame.
Added images