If given an image name parameter it will open to that image in the directory. If the parameter is not given or is not an image in the directory it will open to the first image in the directory