render selected im as data: uri