Fix thumbnails in detail view