problem with setting img display attribute as 'block'

If the img tag is defined as an inline display then retinise replaces it as a block. Store the display attribute and replace it after the image src has been replaced.