Context manager for CoreImage CIContext