Flux conservation test for #524
Also adopted new policy for outer frame pixels. For a charge deflection model that uses information up to n pixels away, no deflection is applied to frame of n pixels at image border.