If you're trying to use regsvr32 to register the component, and you are running on a 64-bit operating system, you're hitting the error because it's trying to use the 64 bit regsvr32. You will also have a 32 bit regsvr32 on your machine - you need to use this version to perform the registration. Try this instead:
%SystemRoot%\SysWOW64\regsvr32 imgocx.ocx