Fix image closing
Use BF class from loci.plugins