Resize diagram image