Make the cached image only the size of the shown grid, not more