A square painting is surrounded by 3 centimeters wide frame. If the total area of the painting plus frame is 961 cmdind the dimensions of the painting?