Updated lib to use requestAnimationFrame for better smoothness
Fixed image sizes, optimized requestAnimationFrameLogic