Fixed a delete bug in formatting library and imaging