Fixing memory leak due to not releasing CGImage. All CG classes are non-ARC.