Set image by ID.