added resize support, fixed text color