Fonction for open images with BioFormat