insert base64 into layout