i,j for blocks, x,y for pixels