Fix photo directory problem