fix images resizing