correct photo js