fix indentation and some dtors
add single-image-view and fix segfault for all the tests