implemented hack for importing gallery images