Save image to local file