function.js: modified to look up images by coordinate
modified image names to accomodate