added support for different types of attachments & fixed imagebug

- added feature: different types of attachments, now image/png, text/html, text/plain and application/javascript base64 strings are supported.
- fixed bug: only the first screenshot will be shown when clicking one of the links when the base64 strings of multiple images are the same.