Fixed issue with Async image capture between AVFoundation and Java