added grash images and border detection for crashing