solves the import issue with generatebinaryImage