Factors bug fix
Use simple plot when number of elements is prime
Add nshow function, normalise image before display