attempt at resizing photos