adding variables for image count and last upload