added timer for onDraw