DIAG: rm whiteRect function, it's only used once