function to get user picture.