Fast way to convert several pictures to base64 in a JSON.