fix photo, fix permissions