Fix the version of the deprecated APIs in ImageView and Control