add classes based on image dimensions