Enable inline images using a Bash function  and parsing stdout
Raise exception when data is not a valid image