Convert uploaded images (JPG, PNG, WebP) to Base64 strings for embedding.
Count words and characters
Encode string to Base64
Format and validate JSON