Fixing f-1 function in image adapter

Fixes template parameters and test file (f^-1 functor)