These DOM IDs are wrong (they are not unique: there may be image "0" _and_ tile "0") as well as useless