to compile ok for imgcapinject