Add support for attachment metadata (currently image width and height only)