Complete Assignment 5

Added Caching of the last few pictures.