I want to show a default image in my widget. What is the best solution to point to an image which is located inside the widget folder structure?

require.toUrl("widgets.notes", "images/defaultAvatar.png"),

The output is:

htpp://www.example.com/widgets/main.notes 404 (Not Found)