Added pixel access tests. (#56)
Also improved array length validation.