Fix Compact thumbs flickering and blanking when closing image from CLI