added possibility to init image from data-url string