Code formatting
Make sure avatar exists before img output