fix photo for registration