make_texture buglet: when doing check_nan, didn't wrap ImageBuf reference properly.