prelim version of script from ian to fix images sizes; needs mod to do update in place, and fix NPE on .svg