Finally got rid of borders on images, thumbnails, gallery (3rd try)

That only took an hour.