Partially fixed image to Base64 issues