added 'path' package and implemented get thumbs. upload photo still buggy.