Dump pics and optimize dumping