Catch fcppt::exception in mergeimage