support image response previews
use target instead of srcElement for Firefox