Fix for [UIImage initWithContentsOfFile] on iOS 8 not loading correct images
NSInteger scale = (int)[[UIScreen mainScreen] scale];
UIImage *image = nil;
while (scale > 0 && !image)
{
NSString *fileName = [imageName stringByAppendingString:scale > 1 ? [NSString stringWithFormat:@"@%dx", scale] : @".png"];
NSString *filePath = [[NSBundle mainBundle] pathForResource:fileName ofType:@"png"];
image = [UIImage imageWithContentsOfFile:filePath];
scale--;
}