Fix memory corruption if using ROIs

The old mock camera always wrote full frames to the client buffer. My patch changes write destination to the internal buffer and adjusts the size of the mock frame.