Made the function that assigns a photo more usable+updated gitignore