transform to standardized image before traing them