How to get the user_picture styled
I have found this to work 

Use Drupal\image\Entity\ImageStyle;
$file_uri = $user-&gt;get('user_picture')-&gt;entity-&gt;getFileUri();
$styled_image_url = ImageStyle::load("large")-&gt;buildUrl($file_uri);