rename for use as plugin, use WindowManager to get image