change image id to s
converted to postgres