Update test_patch_image.py

Refactored "test_update_image_name" by creating an image before updating the image name.