fix error in imagep triangles (#490)