fix photo resizing