you can use the lasso tool,lasso selection.draw around the area you want to fill and the paint will be constrained inside that area...or draw around an object you want to protect,click on file ,invert selection and fill the area outside the lines..that's the easiest, but if you can learn to use...