correct photo size and format