Fixed shadow image crash on iOS 5.