There is a way, but it’s not straightforward and it will impair performance. Can’t you just have one graphic, and “refresh” it from the gif/jpg file containing the image you want to use?
You could use a profile document to store the “current” image name to use, and change the profile editing process to both create the image resource and simultaneously update the profile with the new name.