BF: delete image instance to avoid windows error

Windows complains when trying to delete the temporary directory ("The process
cannot access the file because it is being used by another process"). Delete
the offending object holding onto the file.