X-point and divertor filament dynamics from gas puff imaging on TCV