get img info, first version