add "title" and "class" support to images