After hours of surfing i found this to convert any image to eps(Encapsulated Post Script format).
Go to the directory , say
X@X-system:~$convert image.jpg image.esp
image.jpg is the file which is to be converted into .esp format.
Now you can attach the eps figure into the document with ease.