Prevent flickering by optimizing card drawing