Fixed problem where images extended to the right beyond container