Add initial layout parsing.

Also limits the keys that are used to transfer images and image urls.