The general advice (to inject an event handler in the image tag) from @MarkBuffalo in the comment is correct, but onload isn't a great choice of event handler for images. The better option is usually onerror, which is very easy to reliably trigger; just set the source to be something you know won't exist (or at least won't be an image), like src="qq" onerror="alert('XSS!')".
The specific exception I like is SVG tags, where <svg onload="…" /> is a nice short string (as short as <script>…</script>, and usable in places that try stupid tricks like filtering <script>).
<img class="avatar" src="imghere.jpg" onload="javascript:alert('lol');"/>. So, inputimghere.jpg" onload="javascript:alert('lol');? – Mark Buffalo Apr 15 '18 at 02:37srcattribute? – Mark Buffalo Apr 15 '18 at 06:40