Begin generalizing classify_image.R.