Issue #49: Add image hash calculation to DatabaseImage