added support of image downloading