jpeg cleanup