Corrected thumbnail overflow

Images push out of container when they are not square.