fixed safari bug and used smarter webp technique usign modernizr