added creation of vector for pixels -- creation of diagonals is buggy