Update Controller.php

Moved ```RecursiveIteratorIterator``` to ```__Construct``` to avoid directory iterating for every image request, and stored iterated files in ```$uploadedFiles``` array for use in ```getFile()``` function