Training VGG19 for image classification