updated upload handler to store full path of uploaded picture