fix heap screenshots and old hwcomposer api