fixed negative matrix sizes and added size indicator when drawing