How Image Is Converted Into Matrix