Add thumbnails, remove unnecessary images, change image style to inline-block in thumbail groups