update image count ajax, fixes