fix bug with pilatus (int32 images); should also be faster :)
--small benchmark for faster results