changed images.js file to not use ~ since server cannot read