showPhotoIndex() returns now the content instead of print it out