GRIT: Teaching MLLMs to Think with Images