Can I use fit() function with images in Keras? I want to use vgg16 to train a dataset that contains images. 

Can I use fit() function instead of fit_generator() in Keras? How?
Yes you can. fit() takes the images in a numpy matrix while fit_generator() takes a generator object (processing images in batch)

Guide for using fit(). 

Guide for using fit_generator.