perhaps the imageData is not base64 encoded