Trying to load custom loaded images into vtkImageImport

Thank you so much for this explanation

How would you implement point 3?
Because i have a problem in importing 12bit images and i think it could be related to that somehow