getInputImage() takes imageName as input