Modifying and/or altering an image has nothing to do with the proceedings if you do not own the source image, what you're doing is editing a copyrighted material and is known as another form of art theft... Just because you cartoonize, alter the color, or play around with a photo does not legally allow you to use it for anything...Commercial or otherwise. If I take a picture of a model and give her green skin, I am still violating copyright no matter how much I cry I changed hue sliders.
How famous the picture is has no bearing on copyright.
Whether or not you are using it in a free product or a commercial one has no bearing on copyright.
You can no more legally change the color or cartoonize an existing photo than you can reprint Harry Potter by just going through and changing the name to Harriet Potting and changing the protagonist gender.
Are you willing to risk this entire site being taken down, getting a cease and desist/bill/DMCA or being sued? The Digital Millennium Copyright Act (DMCA) provides very powerful options for a copyright owner to protect his or her works in the digital space. By using images you do not own and publishing a game with them, you may be opening a serious can of worms. Especially over something so silly and seriously, completely pointless in terms of your game. (Unless the mystery is about that painting but I am sure you can do anything else rather than that)