basic code for accessing images and files added. Detection code yet to be added.