Fix bug for reading mnist testset images