Add test for usage of image block macro with data URI

Add a test case for issue #986