wallet.dat inserted into .jpg image
This is called steganography. Invented in Greece two and a half thousand years ago.
Usually, to make the embedded data inconspicuous the embedded data is distributed throughout the whole image as small variations in hue or luminance etc.
People viewing an image would notice an ugly and obvious rectangular patch in a corner. Especially as wallet data might result in noticeable patterns within that patch when interpreted as image data.