Removed padMatrix and replaced with numpys resize function.