adds title attribute to images