fix photo dimensions source