add support for custom drawables and button popup menus (fixes #1)