How to add 2D button image?

You can try wrapping the asset path with require():

However, the best practice here would be make the background image a schema value of your component and set the image from the component configuration in the properties panel.