add simple test for util hashing functions
refactor util.image_html and write tests