added code to select training image