Is a beautiful painting a good painting because it's beautiful? If you answer

Read another response by Michael Lacewing
Read another response about Beauty, Art
Is a beautiful painting a good painting because it's beautiful? If you answer "Yes" I would say that a beautiful painting is a good painting because it's good, and not because it's beautiful. What would you say?