added image hash to each image

Hash will be used for persistent memory of image & designation info.
(start position, color designations, etc.)
renamed some functions, added logging function