[PLUGIN] remove some globals
[FIX] handle SVG files without dimensions