Added right and bottom resize. Added text alignment.