save fix

creates a tmp folder when saving image