that fixed one problem - there's a broken border at the top of the popup window but it's visiblr again.
The gallerypath is not setting correctly now though
using this command
cute.SetSecurityImageGalleryPath("~/uploads/pics")
used to set the "pics" folder to open - I also tried
cute.SetSecurityImageGalleryPath("~/uploads/pics/")
but the image editor opens to the ~/uploads no matter what I do