Setting input value of every pixel of the image which is taken from user.