updated image versioning functions