Does a law exist that would keep you from being imprisoned if you cannot afford to pay fines?

I seriously doubt it. I don't know what state or country you have reference to, but if such a law DID exist it would have been WELL used over the years.