fixed error with resizing UIIMageView and when using autolayouts