Significant revamp of resizing code and sooner escape if not dealing with SVGs