Persist photo paths on oritentation change

Fix #1