Debugging with an ATtiny?
Since you do not have enough RAM for your arrays, something has to
give. A few options:


Do you really need the 10-bit precision of the ADC? If you can live
with 8 bits, then use 8-bit arrays (type uint8_t) and store only
the 8 most significant bits of each reading
(pixelsArray[i]=analogRead(Aout)&gt;&gt;2). This will make the arrays
half as big.
If you really need 10-bit precision, maybe you do not need 128-pixel
resolution? Then you could store only every other pixel. This will
also halve the array sizes.
If you do need both the full precision and the full resolution, then
you will have to pack the bits tight. You can pack up to 4 readings
in 5 bytes. But this will increase the complexity of your program.


Addendum: To declare the arrays as being made of 8-bit integers,
just replace

int pixelsArray[128];
int pixelsArray1[128];


by

uint8_t pixelsArray[128];
uint8_t pixelsArray1[128];


Here “uint8_t” means “unsigned 8-bit integer”, whereas “int” is a
regular integer, i.e. signed and, on the AVRs, 16-bits long.