Fix for #22: Only write to cache for an HTTP 200, sweep empty png files.

For mapbox/MBXMapKit https://github.com/mapbox/mbxmapkit/issues/22