  def self.get_for_group(group_id, incl_img_content=false)

    SqlHelper.validate_token([group_id])

    if group_id.nil?
      office_map = nil
    else
      if incl_img_content
        office_map = OfficeMap.where("group_id=#{group_id}").first
      else
        sql = 'select id, group_id, img_enabled, img_name, img_size, img_content_type, created_at, updated_at from office_maps'
        sql << " where group_id=#{group_id}"
        begin
          office_map = OfficeMap.find_by_sql(sql).first
        rescue
        end
      end
    end

    if office_map.nil?
      office_map = OfficeMap.new
      office_map.group_id = group_id.to_i unless group_id.nil?
      office_map.img_enabled = false
    end

    return office_map
  end