For some reason one of your entities doesn't have an ID and it's required to generate a URL using the picture_show
route.
After a quick code scan I can't find a reason why an ID might be missing. It might have something to do with the inheritance hierarchy the Picture
is involved in. Check the database to confirm there are indeed some missing IDs.