Refactored to clean up code by extracting util functions around image
and thumbnails into util.clj.