default to imagedetails when file can't be read properly

catch ioerrors (using default object) and stop them bubbling up to client application