support automatic thumbnails for layered images based on first layer