Fixing images and replacing id with iid (exercise table)