Removing Background from the image

Hi everyone,
Can anybody help me in guiding how to remove background from an image. Like i have a jpeg image in which Guitar is lying on the carpet and the carpet colour is grey. Now i want the background of this with white colour and Guitar still visible. How can i do this.
Waiting for quick help
Best Regards,
Sam