change directory images get writen to