fix loading avatar. Now possible even from remote file