A tool for generating photographic mosaics