add "title" and "class" support to images

Title says it all. Pretty simple. But very useful.