isr: better defect interpolation, fix crosstalk for rotated CCDs

Defects that had been interpolated were being replaced by the image mean.

Do defect interpolation after flat-fielding, so they don't get tweaked
by the flat-field.

Rotate images before crosstalk correction to put them in the expected
orientation.