Fix unreleased CGImageRef and added frame duration property