[fix] compile errors in image_comparer
[refactor] most of the components. Still not compiling