Discard main wxImage after using it