Added support for image download; Also, removed the file name trimming since it also removed the extension

Signed-off-by: license2e <ilya@shindyapin.com>