Try to fix matplotlib partial images for error emails