changed to the ec2 agent to support image creation, as well as some bug fixes