Fixed diagram thumbnail issues