Resize and correct diagrams