fixed conflict with iOS 5 and wrong resizable image method