Digging up the painting at any point will lift the curse from your island. It will of course take a day or so for things to return back to normal with your island rating.