Changed implaentation dependencies from builtin PIL to matlibplot with numpy arrays