fixed undoredo not working on non black/transparent divs