Ensure numpy plane.dtype matches new img pixelsType