Made measure_cog consistent with the rest of the measurement code

measure_cog now updates the global views dictionary rather than
overwriting previous elements, and returns a results dictionary.
Updated imagen submodule reference