add property maxImageCount to limit the number of image views.