This may not be applicable to you, but I suggested the same thing on another post.
Since you are asking users to enter an img tag into a field, wouldn't it be easy to store the attributes of each tag rather than the whole thing?
Instead of storing:
[row #][img tag]
[row 1][<img src="dogs.jpg" height="10" width="8" />]
[row 2][<img src="cats.gif" height="15" width="17" />]
[row 3][<img src="food.png" height="12" width="11" />]
Wouldn't it make more sense to store:
[row #][name][ext][ht][wt][...whatever...]
[row 1][dogs][jpg][10][08]
[row 2][cats][gif][15][07]
[row 3][food][png][12][11]
That way, when you are displaying your image tags, you could handle different formats differently (if necessary), or scale your images based on height and width.
It also makes it easier to constrain user input. Instead of letting a user enter any value for "height", you could force them to enter an integer, or an integer between 10 and 1000.