Fix issue over https where avatar was http