brought stuff over from https://github.com/ResponsiveImagesCG/picture-element/commit/e189a2230850f210e41ea6f384e592876d54ab48
brought stuff over from https://github.com/ResponsiveImagesCG/picture-element/commit/e189a2230850f210e41ea6f384e592876d54ab48