Apple patent could prevent 'illegal' iPhone recording