support automatic thumbnails for layered images based on the first layer