Implemented a maximum scale and width for exported images

This prevents that generation of larger charts end up in crashing the server