- add support for getting a subimage of the window