modify take pic process