fix for issue #180 regarding cached images