Fixes #1 by granting friend access to Device::capture(int)