Rename timediff
Simplify importphotos
Change permissions