removed debug background drawing
removed var for clarity, grouped bind calls
added flip flags for round rect drawing