Opening images from folder didn't work if there was only 1 image. Now
it's open even if there's only 1.