Generate a nice image with javascript using cubic bezier curves