updated image.js to avoid filebrowser conflict between media and local