rows and cols instead of pixels