use long in multiplications of row and column numbers, required for products with more than 2 billion pixels