add image validation
added image save validate and ddisplay