fix initilization of cudaPitchedPtr

- fix wrong initialization of xsize from cudaPitchedPtr#
- size must be given in byte not number of elements