Fix resize of thumbnails