https://github.com/magento/magento2/blob/2.0.0/app/code/Magento/Shipping/Model/Shipping/LabelGenerator.php#L172-L189
See the top comments here: http://php.net/manual/en/function.imagedestroy.php
https://github.com/magento/magento2/issues/2694