Fixed NPE in import image action