[DF-2740] Small fix in mipmaps generation