[BUGFIX] Check simplexml return type in ImageInfo