ec2: Add DegisterImage function