Issue #46 - Local image cache would store ccorrupted images

...instead of real image data.