new figure generator compatible with file with SD