CB-6978 captureImage() function fails in Android