updated get all images method