Basic Copyright Information
If the painting does not have a copyright holder, and you take a photograph of it, then the photograph is yours to do with as you please, since you created it.
If the painting is not copyrighted, and someone else takes a photograph of it, you will have to secure the...