read image into matrix, reshape to 400x5
move, lots of changes