fixed some issue when the images list is an array of ids