2 unexpected lines removed

Hi, 

I found two weird lines. It seems that the case is handled by the line before (excepted if the image dtype is None, but I don't think it happens, am I wrong ? Otherwise, we can take care of the case after the first line of this function)