resized selected image to fit width