A few months ago, my iPhone started freezing to a blue screen, or having random horizontal lines flickering around the screen. I tried to restore it in recovery mode, but it would often freeze/get lines during the restoration process. Somehow a restore worked the next day, and it seemed all right (despite the accelerometer not working after that). Today, it started freezing again, and I'm slowly trying to coax it into a proper restore. I've looked around to see what could be the cause of the problem, but haven't really found anything. Would it be a software/hardware problem, and could it warrant for a replacement? I've attached some images of the iPhone freezing.