added logic to create uniqe image name