small change to trainCroppedImages﻿