figure with transparent background and refactor