Added replace param to save_pict method
fixed bug