Technical Note: How image processing facilitates the rising bubble technique for discharge measurement