improve path handling; rotate photos in target root