script for bfs_pics