[Might be useless] My attempt to prevent some random EXC_BAD_ACCESS crash on imageWithCGImage: