changing photos to local