Don't set matplotlib backend in per_image_analysis
Don't set matplotlib backend in per_image_analysis

This directly sets the Agg canvas instead of relying on global state.

This fixes #795 by still allowing GUI plots if required by the user.

dials/dials,dials/dials,dials/dials,dials/dials,dials/dials