You need htmlq and wget

Few easy steps:

  1. visit the website you want the picture from
  2. copy the source code into a index.html file
  3. $ cat index.html | htmlq --attribute src img | grep jpg | wget -i-

of course whether and what you grep is up to you 😎