Automatically generating gallery thumbnail images.