A suspended jail sentence has been handed to a man who was caught with over 800 indecent images of children.