Assignment 4: Fix dropped cache of photos by using a shared instance
Assignment 4: Increase warning levels