Simple component for working with grids, for example in spritesheets