changed assert to assume for locale image
removed assert for image to avoid calling of toolkit