fix vertical images from overflowing their container