Switch to 3D

... because the PGM reader actually returns width x height x 1.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Make sure to catch all Throwables

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>