def to_file(path = nil)
      path = File.expand_path(path.nil? ? "#{ENV['TMPDIR']}meme-#{Time.now.to_i}.jpg" : path)
      generate!

      file = File.new(path, 'w+')
      @canvas.write(path)

      file
    end
def to_file(path = nil)
      path = File.expand_path(path.nil? ? "#{ENV['TMPDIR']}meme-#{Time.now.to_i}.jpg" : path)
      generate!

      file = File.new(path, 'w+')
      @canvas.write(path)

      file
    end
@param [String, Pathanem] path Path to an image for the meme background
 @param [String] top: nil The text on the top of the meme
 @param [String] bottom: nil The text on the bottom of the meme
 @param [String] watermark: nil Watermark text
 @return [Meme] A new meme object
 Outputs the meme to the file system

 @param [String] path = nil Where to save the meme
 @return [File] File object representing the meme