update - remove img.initPixelArray() line
update - pixels array is auto initialized

change
From
public void initPixelArray()
To
private void initPixelArray()

pixel array is automatically initialized.
update