Split HexViewer.Paint into different methods for easier reading