Added exception handling for file errors. Changed css to centre avatars