Imprive error handling, update for Base64 API changes