Use img instead of object