fix photo and reg