updated saving local image