use elif to avoid duplicated jpeg link