   images = config.images
   filteredImages = images.filter (obj) -> obj.id != args[3]
   if images.length == filteredImages.length
-    log.warning 'Couldn\'t uninstall image with ID ' \
-      + id \
-      + ' becuse it\'s not installed in the first place.'
+    log.warning "Couldn't uninstall image with ID '#{id}' because it's not" \
+      + ' installed in the first place.'
   else
     config.images = filteredImages
     persistConfig()

# @param [Number] res the resolution code of the image to get
#
buildUrl = (apiKey, id, res) ->
  'https://pixabay.com/api/?key=' \
    + user.apiKey \
    + (if res > 1 then '&response_group=high_resolution' else '') \
    + '&id=' \
    + id

    
# Checks whether or not a resolution code is valid.
#
# @param [Number] res the resolution code to check.
#

  
  persistConfig() # Update configuration file.
  
  log.info "Added image with ID '#{image.id}' as asset."
  
  install() # Freshly install all images.
     
