change int8 to int64

otherwise image coordinates up to 255 can only be refered