fixed some issues when images list is and array of post ids