The cache now updates the last modified date for the image file that gets accessed.
Added ability for the cleanup cache method to run when the app gets backgrounded.