animations can now loop if the loop option is set to true fixed #5