You make the image like you would do regularly, but then you copy and past the image and paste it into the spoiler. It would look something like this.
(Spoiler)(Img)Http//.whateverexp.com(Img)(Spoiler)
^ Not exactly like that but you should get the idea.