fix result output
add image properties to db. fix tests.