Refactoring. I moved common graphics functions in separate module and
removed duplicating functions for cube sides.