If merging an image field into a single table cell or into template by itself from parent object, the table will get resized to it’s actual image size after document gets generated.

If you want to restrict the size of the image and want it to be resized to fit the height/width of your table cell, you can click into the table cell and then click edit to modify the details. Then the image will be resized to fit the table cell height/width.