Moved draw functions to independent file.