Extract the image using jQuery method