Maybe use ImageView.get_platform(image) to get the platform here?  See https://github.com/eucalyptus/koala/blob/develop/koala/views/images.py#L155