Fix iOS 7 issue with generating thumbnails asynchronously