Similarities between photography and writing