Added support for UIAutoResizeMask and updated drawing code to something more proper instead of allocating and releasing UIViews