Lily says that she painted Marshall naked because he ate her bowl of fruit, but previously Lily painted Marshall naked for a nude art class she wanted to take.
In the episode where Barney finds the nude painting of Marshall, Marshall is facing the right. In this episode when Lily is working on the painting, Marshall is facing left with the rose on the wrong side.