Fixed object ownership errors in createImage and createUserEvent