fixed exception when deleting image background