resizing images when importing them