def image_dialog
      @uploaded_files = UploadedFile.all.select { |file| file.is_image? }
      render layout: false
    end
def image_dialog
      @uploaded_files = UploadedFile.all.select { |file| file.is_image? }
      render layout: false
    end
GET /uploaded_files/image_dialog