add variable image count