fix n+1 for admin product images

Closes #5723