Make sure CGImage is properly released