Using apt to read img. Added new methods to check_appdata and generate_meta.