Add image load onerror handler

Make sure, when loading from json, that
a bad image path doesn't fail the desserialization