Resolve NPE with Image.