changed filename save
fixed invert color function