Update ui.html to start loading the next image when previous one finished and before decoding it - this adds some level of parallelism between the downloading of the image and decoding it that can improve the frame rate.