use childprocess spawn instead of execfile to optimize images