Fixed image to BASE64 conversion.