Fixes crash pre-iOS5

UIImage's resizableImageWithCapInsets is only available from iOS5.
Adding detection and use of an alternative API on older platforms.
Tested on iOS4, fixes the crash.