counter added for image name (TODO integrate db)