Window bottom edge detection and tooltip inversion
Add avatar support
Minor code tweaks and fixes