Creating twig extension to build avatar image URL
Minor tweaks to code style