Its called steganography.

I used to use it to hide certain files within images and password protect the true file.
There are various apps that do it and have done it for years.

But good work if you managed to code one.