Make separate module for common graphic operations.