apply zamentur's base64 image patch