add capture image method