fix photo resolution