add client to the image processing function