Conditionally load photo to avoid broken image