added speed property and remove image setting from js