Did you look into the “croppie pluggin”?
Also you can use “:processed with imgix” after the dynamic part of where you display your photo to crop it to a square. I’m sure there is a way to make that work prior to uploading as well.