Implemented the Flash fallback portion of #1997

Props to @mexxik for the great library