update matrix data, keep aspect ratio if buffersize is calculated