fix photo resizing thing