comparing posted and received image in console