Moved method related to import image.