Added support for single image

I added a check to only cycle through the images if there are more then
one.
Also fixed a small typo in the example init code in the readme, missing
quotes.