#1 should fix drawing order to prevent flickering