Added autresizing mask to fix rotation issues.