def load_directory!(dir)
      paths = Dir.glob(dir).grep LeMeme::IMAGE_EXTENSIONS
      @memes.merge!(paths.reduce({}) do |images, path|
        path = File.expand_path(path)
        name = path.split.last.sub(LeMeme::IMAGE_EXTENSIONS, '').to_s
        images.merge(name => path)
      end)
    end
def load_directory!(dir)
      paths = Dir.glob(dir).grep LeMeme::IMAGE_EXTENSIONS
      @memes.merge!(paths.reduce({}) do |images, path|
        path = File.expand_path(path)
        name = path.split.last.sub(LeMeme::IMAGE_EXTENSIONS, '').to_s
        images.merge(name => path)
      end)
    end
Loads a directory into the MemeLib, for template consumption
 Clobbers any existing templates

 @param [String] dir Directory glob pattern to meme templates
 @return [Hash] Hash of all templates and their filepaths