JavaScript: Image to Base64, PHP (Cable)