Previewing and exporting latex fragments with imagemagick has been broken when new export system merged. This is the fix patch.