Compact localized modes of ring type exist in many two-dimensional lattices with a flat linear band, such as the Lieb lattice. The uniform Lieb lattice is gapless, but gaps surrounding the flat band can be induced by various types of bond alternations (dimerizations) without destroying the compact linear eigenmodes. Here, we investigate the conditions under which such diffractionless modes can be formed and propagated also in the presence of a cubic on-site (Kerr) nonlinearity. For the simplest type of dimerization with a three-site unit cell, nonlinearity destroys the exact compactness, but strongly localized modes with frequencies inside the gap are still found to propagate stably for certain regimes of system parameters. By contrast, int...