Comparison of Keras's built in VGG16, Resnet50 & Inception V3 on Cats vs Dogs & suspicions about preprocessing

I just looked into the source of the keras VGG16 implementation and there’s a preprocess function that does exactly what the lambda function does.

My only thought now is that the preprocess function isn’t being called and I can’t figure out how I should call it using batches and the imageDataGenerator.