checking mimetype and append html according (img or flash)