find size-information about decoration of a window

the script returns just x- and y-size of the decoration at the left
upper corner.
added automatic handling for the left upper corner
made the offset of left upper corner dependent on wm

further added screenshot functionality as a byproduct.
the script-functionality moved to the elisp-source