Tree layout script with image