[log] IDEA-117816 small optimization in graph cell drawing

Make image width equal not to hardcoded 1000px, but to the size
which graph + references will actually occupy.