use parameter for image recognition