Added clipping for images too large to fit in ththe log preview viewport.