added possibility to init image directly from url