Implement captureImage (preliminary)