Added optimization option on PNG writer. Added optimization benchmark