Not sure if this would work but Khet Bang Rak do about 10 foreign thai marriages each day but you have to queue from about 4am to get a place. You could then go to immigration with the Thai wedding certificate and apply for a 60 day extension to stay with your wife.