<script>
	let offsetWidth;
</script>

<img src='potato.jpg' bind:offsetWidth>