more tweaks for embedded canvas wrong recttransform size issue