In every screen that has the functionality of taking photos code is repeated to save onto the cache and reading from it, create a widget to reuse in those screens