added a class for small images and modified scripts to work with new class