There is
The National Roll of the Great War, 1914-1918
It is on Ancestry. No photographs though.
There is also
UK, Soldiers Died in the Great War, 1914-1919. But there are no images.
Description says
“ In 1921 His Majesty's Stationery Office published, on behalf of and by authority of the War Office, two lists of those who died during the Great War. One volume, packed with minute typescript, gave the basic details of nearly 42,000 officer casualties. It required an additional eighty volumes to list all the 'other ranks' who gave their lives. Each of the original volumes represented one or more regiments, corps or other units of the British Army. Most were subdivided into battalions or similar groupings. There were often thirty or more of these per volume, each in alphabetical order.
This database contains information extracted from these volumes and includes over 703,000 individuals.”.
But I don’t think there are photographs there either