Refactor get_photos code.  Works better, not best yet.