Alternate device images code.  I will add in the cookie setter/getter later.  Been sitting on this a few days now