changes for saving pic