[ALLI-2601] Added modifications (made by Kalle, thx!) to fix the thumbnail aspect ratios and white background.