change captureSingleImage func