add MD5 and SHA1 to the image template

(cherry picked from commit 5321db6c23ed88e48410e9a869a6ee695afc2da8)