use async task to capture image