change rule for saving images