more work on image<-->feature space conversions. first commit of maybe-complete versions of both conversions.