>>3
Ok, you are asking for a new flattened image that contains the main image's MD5 sum, no requirements on placemen or position, as long as it is visible. This could be done in a simple .sh script that calls MD5(1). Are you asking any other requirements?
Unless you are asking for the image that includes the MD5 transposition/layer as part of its value, like a recursive algorithm asking the MD5 value while it publishes its transposition?