Gravar-mail: Algorithm development for intrafraction radiotherapy beam edge verification from Cherenkov imaging