Fix leaked CGImageRef.