Updated readme. Fixed nextImage function.