Added the inner join for images and users