I am putting up a bunch of trim and will be painting. The walls are out of square and some of the joints aren't perfect. I believe I can use some caulk on these to fill the joints and then paint? Is there a certain kind of caulk that is better suited for this task or just use a basic latex caulk? Thanks for any help on caulking trim.