I'm not entirely clear on what your problem is; it'd be better to use a png image than a gif. I am not sure what you mean by the template not recognising it. One completed template looks like this -- SpineTalk 20:48, February 13, 2014 (UTC)