to compile ok for imgcapcontroller