@Cris *****
Immigration is not very famous for correct English. You got stamped in for a 90-days stay permit when you entered Thailand on a 90-days Non-Imm-O THAI FAMILY visa, the visa itself expired when you entered. What you got issued on Immigration is a "1-year Extension of temporary stay permit based on being married to a Thai wife". You are not on a visa any more, you are inside Thailand on an "extended" stay permit. And this 1-year stay permit needs to be applied for, again, every year. Best is to just don't touch the 400,000 THB deposit, just let it sit in the account, you need it again sitting there for a minimum of 2 months before you apply for the next 1-year extension. And be careful, some Immigrations out there make their own rules and ask for a 3-months seasoning of the 400K