The short answer
Bookshelves supply their own movement, texture and color. Begin by noticing which part of the wall remains visible when books, lamps and seasonal objects are in their usual places. A photograph of a simple landscape or one clear family face may read better near patterned shelves than a crowded group image. Try a paper grouping beside the shelves, and assess it from the doorway and reading chair. Leave enough apparent separation that a visitor can recognize where the photo collection begins and where the book display ends.
What to consider
Do not position art where it obscures shelf access, tall objects or a necessary fixture. If books are rearranged frequently, a very precise design aligned to today's shelf contents may soon seem accidental. Consider two related photographs rather than six with equally busy backgrounds. Keep original image crops and permission notes, particularly when book covers or protected artwork appear inside photographs. Wall-material compatibility, load and mounting clearance need current product and premises verification, not assumptions based on a library-style mockup.