change get Pic function