Correctly set image id