The Easy Rider actor-director picked up a camera in 1961 and began a parallel career as a photographer, taking shots on film sets, in diners and out in the landscape. A new book reveals Hopper’s restless energy and curiosity