def new
      @update_gallery = params['update_gallery'].present?
      respond_to do |format|
        format.html # new.html.erb
        format.json { render json: @image }
      end
    end
def new
      @update_gallery = params['update_gallery'].present?
      respond_to do |format|
        format.html # new.html.erb
        format.json { render json: @image }
      end
    end
GET /images/new
 GET /images/new.json