Moved PNGNotImplementedError to	the right possition