Added cache layer to the images API
Some tests over file API