create an image controller