Refactoring graphic.html