save image path in variable