It can be added to all the ifs - check for both width and height and url. That will be correct.