fixing paths for images and scripts