raw image doesnt always load on screen

raw image doesnt always load on screen, when it doesn't the screen scrambles and stays that way, when it does everything works fine. Is it hardware of software related??

I made 5 post by now and each time I included examples and pictures and each time I lose connection and not one post makes it so I am making thing short in hopes it actually gets posted.

Okay it works so here is some code I have so far and I will try to load pictures of what happens but every time I try I lose connection to this site.

Due_Sketch.ino (7.28 KB)