This happened to me to just on my iPod 4G. You are kinda in trouble. I hope for your sake that it is not what I think. When it happened to me I did not even do a hard reset. Instead I took it to a retailer. I knew the person who works their and said that he was not really supposed to tell me this but a small trojan in the form of a HTML 5 code can disable your firewall on your ios device. And that flashing and distorted screan is when ios is giving a fight and is when the trojen installs itself. A hard reset makes the phone look OK but pretty much all of your data could be leaked. My advice is to backup your device and put it in DFU mode. In DFU mode your device will restored and formatted. This worked for me and did not experience this again. But before you backup your device erase all history cookies caches etc and restart then backup and send your device into DFU.
To enter DFU mode: Plug your iphone into your computer you last backed it up with.
Make sure your device is recognised your Mac/PC.
Turn it off.
Then hold the power buttone for 3 seconds.
Then hold down the home button and the power button for 10 seconds. MAke sure you hold down both the power and home button.
Then release the power button and hold the button for 15 seconds.
iTunes will then say a device has been inserted that needs to be restored. Click restore and wait.
This worked for me.
Please feel free to ask any other questions.
The whole device is going to be wiped so changes are very high that it would be gone.
If you experience the Safari crash again contact me I would be happy to help
While device is connected turn off
Then hold down power for 3 seconds
Then without releasing power hold down home button for 10 seconds
Then without releasing the home button release the power button. for 15 seconds [or until iTunes says device needs to be restored.
This restore is a little different from other restores as is restores ROM firmware the OS and user and system data.
As I said if you experience any other problems you can email me and I would be happy to help