You need to carefully read the terms of the presumed written painting contract that you signed in that its terms and obligations control the obligations owed you under the agreement. If there was a due date for completion of the painting project and its had come and gone before you started the painting on your own you would not have to pay for the full amount of the contract. You would be entitled to some form of a reduction in the contract amount under the law.