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

This reverts commit 9e928b080d983627b29cfaed88a0b0872607f6e4.