Move to camera api as getting error with device.capture.