load images by order, reset maxImageId on every ajax success