Actually I was playing around with the painting and I figured it out that you can add a layer for the background without the paint going on top of the portrait if you don't go too far in from the edge of the portrait and it turn out good.