 # @param [Number] id the ID of the image to get
 # @param [Function] callback the function to call back on
 #
-idToHashId = (id, callback) ->
+deriveHashId = (id, callback) ->
   url = buildUrl user.apiKey, id, 'tiny' # Initial query for image info.
   requestJson url, (error, response, body) ->
     if !error && response.statusCode == 200
       hit = body.hits[0]
-      requestImage hit.previewURL, "./pickseltemp_base.jpg", (err, base) ->
+      requestImage hit.previewURL, AMBIG_BASE_PATH, (err, base) ->
           search = deriveSearchTerm hit # Convert tags to search term.
           url = buildSearchUrl user.apiKey, search, 'full'
           requestJson url, (error, response, body) -> # Feed tags back in.

          when 'install' then install() # Install assets.
          when 'add' then add process.argv # Add asset.
          when 'remove' then remove process.argv # Remove asset.
          when 'test' then idToHashId '195893', (err, id) -> console.log id
      else
        # Workspace needs setting up first.
        log.error "Couldn't load workspace for above reason. Terminating."

# Builds a search URL for downloading image information.
#
# @param [String] apiKey the API key to use for the request
# @param [String] term the search term to use to query the API
# @param [String] resolution the human-readable resolution required
#
buildSearchUrl = (apiKey, term, resolution) ->
  code = humanResolutionToCode resolution
