This only seems to work for the images which are stored on local file system (and not for the images which are on a web server).