small fix and depreciated function change

fix the first view with subpallettes not defined in the backend
depreciated function generateImage