fix local image storage