corrected image comparing step
updated image comparing code
Corrected image comparision code
Added functionality for comparing jpg images