Adding MD5 Hashing for image key generation