validates matching image and model type