added tombstone number checking for image retrieval from server