Figuring out why my image is not working in the template
You can have more than one Asset in any Assets field, so it always returns to you an array of assets. So you just need:

{{ entry.hoofdafbeelding.first().getUrl('square') }}


...assuming you want the first asset.