Modified photo server to use new network recv functions.