def thumbs_path(path)
      File.join File.dirname(path), "thumbs", File.basename(path)
    end
def thumbs_path(path)
      File.join File.dirname(path), "thumbs", File.basename(path)
    end
Takes the image at +path+ and returns the path to the thumbnail for that
 image, assuming that the thumbnail has the same filename and resides in
 a child directory named <tt>thumbs</tt>.

   thumbs_path "/path/to/image.jpg"  # => "/path/to/thumbs/image.jpg"