finish take pic func.