First you have to silence Galipo.
Once Galipo is asleep, you can look at the painting.
There is one thing strange about the painting.
Click the mouse on the firing cannon.
The painting will descend, revealing a code box.