Store 2D matrices along with presets

Now it is possible to store the 2D matrices along with presets. Making
it much faster to load presets since it doesn't need to draw the 2D
matrix again and it will simply load the stored matrix.