The painting saw you.
You unlocked the front door and fled into the night. The curse remains, but you survive.