Fixed server write for photo received with fwrite. Generated photo file name instead of taking input. Added client id and photo id.