Adding magic8 and image contro code