new_image_type="${NEW_IMAGE_NAME% -*}"
# get the $new_image_type to check the image type is being compared
if [[ ${new_image_type} != "${image_type}" ]]; then
new_image_type="${NEW_IMAGE_NAME% -*}"
# get the $new_image_type to check the image type is being compared
if [[ ${new_image_type} != "${image_type}" ]]; then