remove remaining refs to max_image_sizes

Change-Id: I7e4686bc06f9c3eab2df34d092021c549738b217
diff --git a/tools/releasetools/img_from_target_files b/tools/releasetools/img_from_target_files
index 8250b0e..d734ad0 100755
--- a/tools/releasetools/img_from_target_files
+++ b/tools/releasetools/img_from_target_files
@@ -64,8 +64,8 @@
   if OPTIONS.info_dict.get("fs_type", "").startswith("ext"):
     build_command = ["mkuserimg.sh",
                      user_dir, img.name, OPTIONS.info_dict["fs_type"], "userdata"]
-    if "userdata.img" in OPTIONS.max_image_size:
-      build_command.append(str(OPTIONS.max_image_size["userdata.img"]))
+    if "userdata_size" in OPTIONS.info_dict:
+      build_command.append(str(OPTIONS.info_dict["userdata_size"]))
   else:
     build_command = ["mkyaffs2image", "-f"]
     extra = OPTIONS.info_dict.get("mkyaffs2_extra_flags", None)
@@ -112,8 +112,8 @@
     build_command = ["mkuserimg.sh",
                      os.path.join(OPTIONS.input_tmp, "system"), img.name,
                      OPTIONS.info_dict["fs_type"], "system"]
-    if "system.img" in OPTIONS.max_image_size:
-      build_command.append(str(OPTIONS.max_image_size["system.img"]))
+    if "system_img" in OPTIONS.info_dict:
+      build_command.append(str(OPTIONS.info_dict["system_size"]))
   else:
     build_command = ["mkyaffs2image", "-f"]
     extra = OPTIONS.info_dict.get("mkyaffs2_extra_flags", None)