Under Canadian law, police can release mugshots when someone is charged with or convicted of serious criminal offences.