removed extra slash from output string for image file thumbnails