UI "Image" turns into "Script"

Can you share some screenshots of how you have set up your object in the scene?
Did all of the components show up as Images as expected initially, and then broke after you made some change?

By the way, here is some info on how to post code properly to the forums: Using code tags properly