change the second parameter of platform_img() to be a simple dictionary ...

...instead of **kwargs. This allows naming the keys however we want instead of having to name them as valid python vars. Useful when the attribute has a dash in it. Update all current uses of platform_img to work with the new attribute type.