Set the writing direction of the image placeholder string to LTR because image is drawn in LTR manner.

For Right-to-Left text: In drawImages, we obtain the offset, and since the string is RTL, the
offset returned is a RTL offset with the idea the next code will be
drawing in RTL directionality. Whereas the code draws the image in LTR
layout, so I explicitly set the writing direction of the image
placeholder string to LTR (as we draw the image LTR) and thus the
correct offset is returned allowing us to draw LTR and the image is
shown correctly. This shouldn't break LTR clients, as we are just
setting the writing directionality to that.