added resources.js to handle image loading