upload pic function added