Fix clearing and pixmap