pub fn dims_match(width: usize, height: usize, len: usize) -> bool { width * height == len }