added text emboss effect helper function and some error fixing in the button drawing function