added inline images support