Implemented reusable autosizetextarea which also fixes a drawing glitch when resizing