apply patch to fix deleting images

https://www.drupal.org/node/1968442