Added undo push after "create UV grid image". Note that it won't help much, since the Imbuf is freed on undo... that's for another project, to have a fixed Image cache to use in Blender.