https://technicalsource9.medium.com/can-anybody-please-tell-me-how-to-capture-an-image-in-matlab-2df0cd508711